﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InterfaceDefaultFunctionsImpl
{
    /// <summary>
    /// 测试接口默认方法
    /// </summary>
    class TestDefaultFunctions
    {
        void Test()
        {
            ITest t = new TestImpl();

            // 调用默认方法
            t.DefaultFunctionAdd(1, 2);
            t.DefaultFunctionSub(1, 2);
        }
    }
}
